package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClubCategoriesMapper;
import com.ruoyi.system.domain.ClubCategories;
import com.ruoyi.system.service.IClubCategoriesService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-25
 */
@Service
public class ClubCategoriesServiceImpl implements IClubCategoriesService 
{
    @Autowired
    private ClubCategoriesMapper clubCategoriesMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param categoryId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ClubCategories selectClubCategoriesByCategoryId(Long categoryId)
    {
        return clubCategoriesMapper.selectClubCategoriesByCategoryId(categoryId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param clubCategories 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ClubCategories> selectClubCategoriesList(ClubCategories clubCategories)
    {
        return clubCategoriesMapper.selectClubCategoriesList(clubCategories);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param clubCategories 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertClubCategories(ClubCategories clubCategories)
    {
        return clubCategoriesMapper.insertClubCategories(clubCategories);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param clubCategories 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateClubCategories(ClubCategories clubCategories)
    {
        return clubCategoriesMapper.updateClubCategories(clubCategories);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param categoryIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteClubCategoriesByCategoryIds(Long[] categoryIds)
    {
        return clubCategoriesMapper.deleteClubCategoriesByCategoryIds(categoryIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param categoryId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteClubCategoriesByCategoryId(Long categoryId)
    {
        return clubCategoriesMapper.deleteClubCategoriesByCategoryId(categoryId);
    }
}
